@import './base.css';

#app {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-weight: normal;
}

a,
.green {
  text-decoration: none;
  color: hsla(160, 100%, 37%, 1);
  transition: 0.4s;
  padding: 3px;
}

@media (hover: hover) {
  a:hover {
    background-color: hsla(160, 100%, 37%, 0.2);
  }
}

/* 极简滚动条样式 */
::-webkit-scrollbar {
  width: var(--scrollbar-width, 6px);
  height: var(--scrollbar-width, 6px);
}

::-webkit-scrollbar-track {
  background: transparent; /* 取消背景 */
  border-radius: var(--scrollbar-border-radius, 3px);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb, var(--text-tertiary));
  border-radius: var(--scrollbar-border-radius, 3px);
  border: 1px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover, var(--text-secondary));
}

::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-hover, var(--text-primary));
}

/* 隐藏滚动条按钮（上下箭头） */
::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  border: none !important;
}

::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* 隐藏滚动条轨道两端的空间 */
::-webkit-scrollbar-track-piece:start,
::-webkit-scrollbar-track-piece:end {
  background: transparent;
}

/* 确保滚动条容器没有内边距 */
::-webkit-scrollbar-track {
  margin: 0;
  padding: 0;
}

/* Firefox 滚动条样式 */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb, var(--text-tertiary)) transparent;
}

/* 隐藏滚动条但保持功能 */
.scrollbar-hidden {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.scrollbar-hidden::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* 自定义滚动条过渡效果 */
::-webkit-scrollbar-thumb {
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-track {
  transition: background-color 0.2s ease;
}

/* 强力隐藏所有滚动条箭头 - 针对各种浏览器 */
html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button,
div::-webkit-scrollbar-button,
::-webkit-scrollbar-button:vertical:start:decrement,
::-webkit-scrollbar-button:vertical:end:increment,
::-webkit-scrollbar-button:horizontal:start:decrement,
::-webkit-scrollbar-button:horizontal:end:increment {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
